.class public Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;
.super Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;
.source "BurstlyAnimatedBanner.java"

# interfaces
.implements Lcom/burstly/lib/conveniencelayer/ICacheable;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$BannerAnimationListener;,
        Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$IAnimationListener;,
        Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;
    }
.end annotation


# instance fields
.field private mAnimationCallbacks:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$IAnimationListener;

.field private mAnimationListener:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$BannerAnimationListener;

.field private mAutoCached:Z

.field private mInAnim:Landroid/view/animation/Animation;

.field private mOutAnim:Landroid/view/animation/Animation;

.field private mRefreshRate:I

.field private mState:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

.field private mThrottleTime:I


# direct methods
.method public constructor <init>(Landroid/app/Activity;IZ)V
    .locals 3
    .parameter "activity"
    .parameter "id"
    .parameter "autoCache"
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    .prologue
    .line 164
    sget-object v1, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;->UNKNOWN:Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;

    invoke-direct {p0, p1, v1}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;-><init>(Landroid/app/Activity;Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;)V

    .line 114
    new-instance v1, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$BannerAnimationListener;

    invoke-direct {v1, p0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$BannerAnimationListener;-><init>(Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;)V

    iput-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mAnimationListener:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$BannerAnimationListener;

    .line 166
    invoke-virtual {p1, p2}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/burstly/lib/ui/BurstlyView;

    .line 168
    .local v0, burstlyView:Lcom/burstly/lib/ui/BurstlyView;
    if-nez v0, :cond_0

    .line 169
    new-instance v1, Ljava/lang/RuntimeException;

    const-string v2, "Invalid view Id.  A view with this Id could not be found with the activity\'s current layout"

    invoke-direct {v1, v2}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw v1

    .line 173
    :cond_0
    invoke-virtual {p0, v0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->setBurstlyView(Lcom/burstly/lib/ui/BurstlyView;)V

    .line 174
    invoke-direct {p0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->init()V

    .line 176
    iput-boolean p3, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mAutoCached:Z

    .line 177
    return-void
.end method

.method public constructor <init>(Landroid/app/Activity;Landroid/view/ViewGroup;Landroid/view/ViewGroup$LayoutParams;Ljava/lang/String;Ljava/lang/String;IZ)V
    .locals 1
    .parameter "activity"
    .parameter "group"
    .parameter "params"
    .parameter "zoneId"
    .parameter "viewName"
    .parameter "refreshRate"
    .parameter "autoCache"
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    .prologue
    .line 232
    sget-object v0, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;->UNKNOWN:Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;

    invoke-direct {p0, p1, v0}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;-><init>(Landroid/app/Activity;Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;)V

    .line 114
    new-instance v0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$BannerAnimationListener;

    invoke-direct {v0, p0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$BannerAnimationListener;-><init>(Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;)V

    iput-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mAnimationListener:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$BannerAnimationListener;

    .line 233
    invoke-direct/range {p0 .. p5}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->initNewAnimatedBanner(Landroid/app/Activity;Landroid/view/ViewGroup;Landroid/view/ViewGroup$LayoutParams;Ljava/lang/String;Ljava/lang/String;)V

    .line 234
    iput p6, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mRefreshRate:I

    .line 236
    iput-boolean p7, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mAutoCached:Z

    .line 237
    return-void
.end method

.method public constructor <init>(Landroid/app/Activity;Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;IZ)V
    .locals 3
    .parameter "activity"
    .parameter "adSize"
    .parameter "id"
    .parameter "autoCache"

    .prologue
    .line 277
    invoke-direct {p0, p1, p2}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;-><init>(Landroid/app/Activity;Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;)V

    .line 114
    new-instance v1, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$BannerAnimationListener;

    invoke-direct {v1, p0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$BannerAnimationListener;-><init>(Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;)V

    iput-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mAnimationListener:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$BannerAnimationListener;

    .line 279
    invoke-virtual {p1, p3}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/burstly/lib/ui/BurstlyView;

    .line 281
    .local v0, burstlyView:Lcom/burstly/lib/ui/BurstlyView;
    if-nez v0, :cond_0

    .line 282
    new-instance v1, Ljava/lang/RuntimeException;

    const-string v2, "Invalid view Id.  A view with this Id could not be found with the activity\'s current layout"

    invoke-direct {v1, v2}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw v1

    .line 286
    :cond_0
    invoke-virtual {p0, v0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->setBurstlyView(Lcom/burstly/lib/ui/BurstlyView;)V

    .line 287
    invoke-direct {p0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->init()V

    .line 289
    iput-boolean p4, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mAutoCached:Z

    .line 290
    return-void
.end method

.method public constructor <init>(Landroid/app/Activity;Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;Landroid/view/ViewGroup;Landroid/view/ViewGroup$LayoutParams;Ljava/lang/String;Ljava/lang/String;IZ)V
    .locals 6
    .parameter "activity"
    .parameter "adSize"
    .parameter "group"
    .parameter "params"
    .parameter "zoneId"
    .parameter "viewName"
    .parameter "refreshRate"
    .parameter "autoCache"

    .prologue
    .line 339
    invoke-direct {p0, p1, p2}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;-><init>(Landroid/app/Activity;Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;)V

    .line 114
    new-instance v0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$BannerAnimationListener;

    invoke-direct {v0, p0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$BannerAnimationListener;-><init>(Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;)V

    iput-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mAnimationListener:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$BannerAnimationListener;

    move-object v0, p0

    move-object v1, p1

    move-object v2, p3

    move-object v3, p4

    move-object v4, p5

    move-object v5, p6

    .line 340
    invoke-direct/range {v0 .. v5}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->initNewAnimatedBanner(Landroid/app/Activity;Landroid/view/ViewGroup;Landroid/view/ViewGroup$LayoutParams;Ljava/lang/String;Ljava/lang/String;)V

    .line 341
    iput p7, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mRefreshRate:I

    .line 343
    iput-boolean p8, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mAutoCached:Z

    .line 344
    return-void
.end method

.method public constructor <init>(Landroid/support/v4/app/Fragment;IZ)V
    .locals 4
    .parameter "fragment"
    .parameter "id"
    .parameter "autoCache"
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    .prologue
    .line 192
    sget-object v2, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;->UNKNOWN:Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;

    invoke-direct {p0, p1, v2}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;-><init>(Landroid/support/v4/app/Fragment;Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;)V

    .line 114
    new-instance v2, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$BannerAnimationListener;

    invoke-direct {v2, p0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$BannerAnimationListener;-><init>(Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;)V

    iput-object v2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mAnimationListener:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$BannerAnimationListener;

    .line 194
    invoke-virtual {p1}, Landroid/support/v4/app/Fragment;->getView()Landroid/view/View;

    move-result-object v1

    .line 196
    .local v1, rootView:Landroid/view/View;
    if-nez v1, :cond_0

    .line 197
    new-instance v2, Ljava/lang/RuntimeException;

    const-string v3, "fragment.getView returned null. Has this fragment inflated a layout?"

    invoke-direct {v2, v3}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw v2

    .line 200
    :cond_0
    invoke-virtual {v1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/burstly/lib/ui/BurstlyView;

    .line 202
    .local v0, burstlyView:Lcom/burstly/lib/ui/BurstlyView;
    if-nez v0, :cond_1

    .line 203
    new-instance v2, Ljava/lang/RuntimeException;

    const-string v3, "Invalid view Id.  A view with this Id could not be found in the current layout"

    invoke-direct {v2, v3}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw v2

    .line 206
    :cond_1
    invoke-virtual {p0, v0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->setBurstlyView(Lcom/burstly/lib/ui/BurstlyView;)V

    .line 207
    invoke-direct {p0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->init()V

    .line 209
    iput-boolean p3, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mAutoCached:Z

    .line 210
    return-void
.end method

.method public constructor <init>(Landroid/support/v4/app/Fragment;Landroid/view/ViewGroup;Landroid/view/ViewGroup$LayoutParams;Ljava/lang/String;Ljava/lang/String;IZ)V
    .locals 6
    .parameter "fragment"
    .parameter "group"
    .parameter "params"
    .parameter "zoneId"
    .parameter "viewName"
    .parameter "refreshRate"
    .parameter "autoCache"
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    .prologue
    .line 259
    sget-object v0, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;->UNKNOWN:Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;

    invoke-direct {p0, p1, v0}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;-><init>(Landroid/support/v4/app/Fragment;Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;)V

    .line 114
    new-instance v0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$BannerAnimationListener;

    invoke-direct {v0, p0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$BannerAnimationListener;-><init>(Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;)V

    iput-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mAnimationListener:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$BannerAnimationListener;

    .line 260
    invoke-virtual {p1}, Landroid/support/v4/app/Fragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v1

    move-object v0, p0

    move-object v2, p2

    move-object v3, p3

    move-object v4, p4

    move-object v5, p5

    invoke-direct/range {v0 .. v5}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->initNewAnimatedBanner(Landroid/app/Activity;Landroid/view/ViewGroup;Landroid/view/ViewGroup$LayoutParams;Ljava/lang/String;Ljava/lang/String;)V

    .line 261
    iput p6, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mRefreshRate:I

    .line 263
    iput-boolean p7, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mAutoCached:Z

    .line 264
    return-void
.end method

.method public constructor <init>(Landroid/support/v4/app/Fragment;Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;IZ)V
    .locals 4
    .parameter "fragment"
    .parameter "adSize"
    .parameter "id"
    .parameter "autoCache"

    .prologue
    .line 303
    invoke-direct {p0, p1, p2}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;-><init>(Landroid/support/v4/app/Fragment;Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;)V

    .line 114
    new-instance v2, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$BannerAnimationListener;

    invoke-direct {v2, p0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$BannerAnimationListener;-><init>(Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;)V

    iput-object v2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mAnimationListener:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$BannerAnimationListener;

    .line 305
    invoke-virtual {p1}, Landroid/support/v4/app/Fragment;->getView()Landroid/view/View;

    move-result-object v1

    .line 307
    .local v1, rootView:Landroid/view/View;
    if-nez v1, :cond_0

    .line 308
    new-instance v2, Ljava/lang/RuntimeException;

    const-string v3, "fragment.getView returned null. Has this fragment inflated a layout?"

    invoke-direct {v2, v3}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw v2

    .line 311
    :cond_0
    invoke-virtual {v1, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/burstly/lib/ui/BurstlyView;

    .line 313
    .local v0, burstlyView:Lcom/burstly/lib/ui/BurstlyView;
    if-nez v0, :cond_1

    .line 314
    new-instance v2, Ljava/lang/RuntimeException;

    const-string v3, "Invalid view Id.  A view with this Id could not be found in the current layout"

    invoke-direct {v2, v3}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw v2

    .line 317
    :cond_1
    invoke-virtual {p0, v0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->setBurstlyView(Lcom/burstly/lib/ui/BurstlyView;)V

    .line 318
    invoke-direct {p0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->init()V

    .line 320
    iput-boolean p4, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mAutoCached:Z

    .line 321
    return-void
.end method

.method public constructor <init>(Landroid/support/v4/app/Fragment;Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;Landroid/view/ViewGroup;Landroid/view/ViewGroup$LayoutParams;Ljava/lang/String;Ljava/lang/String;IZ)V
    .locals 6
    .parameter "fragment"
    .parameter "adSize"
    .parameter "group"
    .parameter "params"
    .parameter "zoneId"
    .parameter "viewName"
    .parameter "refreshRate"
    .parameter "autoCache"

    .prologue
    .line 362
    invoke-direct {p0, p1, p2}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;-><init>(Landroid/support/v4/app/Fragment;Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;)V

    .line 114
    new-instance v0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$BannerAnimationListener;

    invoke-direct {v0, p0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$BannerAnimationListener;-><init>(Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;)V

    iput-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mAnimationListener:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$BannerAnimationListener;

    .line 363
    invoke-virtual {p1}, Landroid/support/v4/app/Fragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v1

    move-object v0, p0

    move-object v2, p3

    move-object v3, p4

    move-object v4, p5

    move-object v5, p6

    invoke-direct/range {v0 .. v5}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->initNewAnimatedBanner(Landroid/app/Activity;Landroid/view/ViewGroup;Landroid/view/ViewGroup$LayoutParams;Ljava/lang/String;Ljava/lang/String;)V

    .line 364
    iput p7, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mRefreshRate:I

    .line 366
    iput-boolean p8, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mAutoCached:Z

    .line 367
    return-void
.end method

.method static synthetic access$000(Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;)Landroid/view/animation/Animation;
    .locals 1
    .parameter "x0"

    .prologue
    .line 37
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mInAnim:Landroid/view/animation/Animation;

    return-object v0
.end method

.method static synthetic access$100(Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;)Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;
    .locals 1
    .parameter "x0"

    .prologue
    .line 37
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mState:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    return-object v0
.end method

.method static synthetic access$102(Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;)Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 37
    iput-object p1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mState:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    return-object p1
.end method

.method static synthetic access$200(Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;)Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$IAnimationListener;
    .locals 1
    .parameter "x0"

    .prologue
    .line 37
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mAnimationCallbacks:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$IAnimationListener;

    return-object v0
.end method

.method private init()V
    .locals 1

    .prologue
    .line 399
    sget-object v0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;->Offscreen:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    iput-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mState:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    .line 400
    const/4 v0, -0x1

    iput v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mThrottleTime:I

    .line 401
    invoke-virtual {p0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->getBurstlyView()Lcom/burstly/lib/ui/BurstlyView;

    move-result-object v0

    invoke-virtual {v0}, Lcom/burstly/lib/ui/BurstlyView;->getDefaultSessionLife()I

    move-result v0

    iput v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mRefreshRate:I

    .line 402
    return-void
.end method

.method private initNewAnimatedBanner(Landroid/app/Activity;Landroid/view/ViewGroup;Landroid/view/ViewGroup$LayoutParams;Ljava/lang/String;Ljava/lang/String;)V
    .locals 2
    .parameter "activity"
    .parameter "group"
    .parameter "params"
    .parameter "zoneId"
    .parameter "viewName"

    .prologue
    .line 380
    new-instance v0, Lcom/burstly/lib/ui/BurstlyView;

    invoke-direct {v0, p1}, Lcom/burstly/lib/ui/BurstlyView;-><init>(Landroid/content/Context;)V

    .line 381
    .local v0, burstlyView:Lcom/burstly/lib/ui/BurstlyView;
    invoke-static {}, Lcom/burstly/lib/conveniencelayer/Burstly;->getAppID()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/burstly/lib/ui/BurstlyView;->setPublisherId(Ljava/lang/String;)V

    .line 382
    invoke-virtual {v0, p4}, Lcom/burstly/lib/ui/BurstlyView;->setZoneId(Ljava/lang/String;)V

    .line 383
    invoke-virtual {v0, p5}, Lcom/burstly/lib/ui/BurstlyView;->setBurstlyViewId(Ljava/lang/String;)V

    .line 385
    invoke-virtual {p0, v0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->setBurstlyView(Lcom/burstly/lib/ui/BurstlyView;)V

    .line 386
    invoke-direct {p0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->init()V

    .line 388
    if-eqz p3, :cond_0

    .line 389
    invoke-virtual {p2, v0, p3}, Landroid/view/ViewGroup;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 393
    :goto_0
    return-void

    .line 391
    :cond_0
    invoke-virtual {p2, v0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    goto :goto_0
.end method


# virtual methods
.method public cacheAd()V
    .locals 3

    .prologue
    .line 722
    iget-boolean v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mAutoCached:Z

    if-eqz v0, :cond_0

    .line 723
    new-instance v0, Ljava/lang/RuntimeException;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Automatic caching enabled for "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->getName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ". Do not attempt to manually cache an ad also"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 727
    :cond_0
    invoke-super {p0}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->baseCacheAd()V

    .line 728
    return-void
.end method

.method public getRefreshRate()I
    .locals 6

    .prologue
    const/4 v1, 0x0

    .line 425
    invoke-virtual {p0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->getBurstlyView()Lcom/burstly/lib/ui/BurstlyView;

    move-result-object v0

    .line 426
    .local v0, burstlyView:Lcom/burstly/lib/ui/BurstlyView;
    if-eqz v0, :cond_0

    .line 427
    invoke-virtual {v0}, Lcom/burstly/lib/ui/BurstlyView;->getDefaultSessionLife()I

    move-result v1

    .line 431
    :goto_0
    return v1

    .line 429
    :cond_0
    sget-object v2, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->sLog:Lcom/burstly/lib/util/LoggerExt;

    const-string v3, "Burstly Convenience Layer"

    const-string v4, "Should create a BurstlyAnimatedBanner before calling this method."

    new-array v5, v1, [Ljava/lang/Object;

    invoke-virtual {v2, v3, v4, v5}, Lcom/burstly/lib/util/LoggerExt;->logError(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_0
.end method

.method public getState()Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;
    .locals 1

    .prologue
    .line 676
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mState:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    return-object v0
.end method

.method public hasCachedAd()Z
    .locals 1

    .prologue
    .line 737
    invoke-super {p0}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->baseHasCachedAd()Z

    move-result v0

    return v0
.end method

.method public hideAd()V
    .locals 5

    .prologue
    const/4 v4, 0x0

    .line 683
    invoke-static {}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->throwIfNotOnMainThread()V

    .line 685
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mState:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    invoke-virtual {v0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;->ordinal()I

    move-result v0

    sget-object v1, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;->ShowTriggered:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    invoke-virtual {v1}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;->ordinal()I

    move-result v1

    if-ge v0, v1, :cond_0

    .line 686
    sget-object v0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->sLog:Lcom/burstly/lib/util/LoggerExt;

    const-string v1, "Burstly Convenience Layer"

    const-string v2, "Calling hide without calling show."

    new-array v3, v4, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logWarning(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 715
    :goto_0
    return-void

    .line 687
    :cond_0
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mState:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    sget-object v1, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;->ShowTriggered:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    if-ne v0, v1, :cond_1

    .line 688
    sget-object v0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->sLog:Lcom/burstly/lib/util/LoggerExt;

    const-string v1, "Burstly Convenience Layer"

    const-string v2, "Hiding an ad immediately after trying to show it before it made it to the screen.  Impression will be tracked but not shown."

    new-array v3, v4, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logError(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 691
    sget-object v0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;->Offscreen:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    iput-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mState:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    goto :goto_0

    .line 692
    :cond_1
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mState:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    sget-object v1, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;->OutroAnim:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    if-ne v0, v1, :cond_2

    .line 693
    sget-object v0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->sLog:Lcom/burstly/lib/util/LoggerExt;

    const-string v1, "Burstly Convenience Layer"

    const-string v2, "Calling hide multiple times"

    new-array v3, v4, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logWarning(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_0

    .line 695
    :cond_2
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mState:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    sget-object v1, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;->IntroAnim:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    if-ne v0, v1, :cond_3

    .line 696
    sget-object v0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->sLog:Lcom/burstly/lib/util/LoggerExt;

    const-string v1, "Burstly Convenience Layer"

    const-string v2, "Calling hide before intro transition was finished"

    new-array v3, v4, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logWarning(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 699
    :cond_3
    invoke-virtual {p0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->getBurstlyView()Lcom/burstly/lib/ui/BurstlyView;

    move-result-object v0

    invoke-virtual {v0}, Lcom/burstly/lib/ui/BurstlyView;->resetDefaultSessionLife()V

    .line 701
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mOutAnim:Landroid/view/animation/Animation;

    if-nez v0, :cond_5

    .line 702
    sget-object v0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;->Offscreen:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    iput-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mState:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    .line 703
    invoke-virtual {p0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->getBurstlyView()Lcom/burstly/lib/ui/BurstlyView;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Lcom/burstly/lib/ui/BurstlyView;->setVisibility(I)V

    .line 705
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mAnimationCallbacks:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$IAnimationListener;

    if-eqz v0, :cond_4

    .line 706
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mAnimationCallbacks:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$IAnimationListener;

    invoke-interface {v0, p0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$IAnimationListener;->onOutroAnimEnd(Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;)V

    .line 709
    :cond_4
    new-instance v0, Lcom/burstly/lib/conveniencelayer/events/AdHideEvent;

    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mLastShow:Lcom/burstly/lib/conveniencelayer/events/AdShowEvent;

    invoke-direct {v0, v4, v1}, Lcom/burstly/lib/conveniencelayer/events/AdHideEvent;-><init>(ZLcom/burstly/lib/conveniencelayer/events/AdShowEvent;)V

    invoke-virtual {p0, v0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->onHide(Lcom/burstly/lib/conveniencelayer/events/AdHideEvent;)V

    goto :goto_0

    .line 711
    :cond_5
    sget-object v0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;->OutroAnim:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    iput-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mState:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    .line 712
    invoke-virtual {p0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->getBurstlyView()Lcom/burstly/lib/ui/BurstlyView;

    move-result-object v0

    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mOutAnim:Landroid/view/animation/Animation;

    invoke-virtual {v0, v1}, Lcom/burstly/lib/ui/BurstlyView;->startAnimation(Landroid/view/animation/Animation;)V

    goto :goto_0
.end method

.method public isCachingAd()Z
    .locals 1

    .prologue
    .line 747
    invoke-super {p0}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->baseIsCachingAd()Z

    move-result v0

    return v0
.end method

.method public isVisible()Z
    .locals 2

    .prologue
    .line 667
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mState:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    invoke-virtual {v0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;->ordinal()I

    move-result v0

    sget-object v1, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;->IntroAnim:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    invoke-virtual {v1}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;->ordinal()I

    move-result v1

    if-lt v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method protected onCache(Lcom/burstly/lib/conveniencelayer/events/AdCacheEvent;)V
    .locals 6
    .parameter "event"

    .prologue
    .line 441
    invoke-super {p0, p1}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->onCache(Lcom/burstly/lib/conveniencelayer/events/AdCacheEvent;)V

    .line 443
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mState:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    sget-object v1, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;->ShowTriggered:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    if-ne v0, v1, :cond_1

    .line 444
    invoke-super {p0}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->showAd()V

    .line 449
    :cond_0
    :goto_0
    return-void

    .line 445
    :cond_1
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mState:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    sget-object v1, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;->Offscreen:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    if-eq v0, v1, :cond_0

    .line 446
    sget-object v0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->sLog:Lcom/burstly/lib/util/LoggerExt;

    const-string v1, "Burstly Convenience Layer"

    const-string v2, "Unexpected state. Banner in state {0} when precache finished."

    const/4 v3, 0x1

    new-array v3, v3, [Ljava/lang/Object;

    const/4 v4, 0x0

    iget-object v5, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mState:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    invoke-virtual {v5}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;->toString()Ljava/lang/String;

    move-result-object v5

    aput-object v5, v3, v4

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logError(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_0
.end method

.method protected onFail(Lcom/burstly/lib/conveniencelayer/events/AdFailEvent;)V
    .locals 4
    .parameter "event"

    .prologue
    .line 504
    invoke-virtual {p1}, Lcom/burstly/lib/conveniencelayer/events/AdFailEvent;->wasRequestThrottled()Z

    move-result v2

    if-eqz v2, :cond_2

    .line 505
    invoke-virtual {p1}, Lcom/burstly/lib/conveniencelayer/events/AdFailEvent;->getMinTimeUntilNextRequest()I

    move-result v2

    iput v2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mThrottleTime:I

    .line 521
    :goto_0
    iget-object v2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mState:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    sget-object v3, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;->OnScreen:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    if-eq v2, v3, :cond_0

    .line 522
    sget-object v2, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;->Offscreen:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    iput-object v2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mState:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    .line 525
    :cond_0
    sget-object v2, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;->Idle:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;

    iput-object v2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mCachingState:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;

    .line 528
    iget-boolean v2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mAutoCached:Z

    if-eqz v2, :cond_1

    invoke-virtual {p1}, Lcom/burstly/lib/conveniencelayer/events/AdFailEvent;->wasFailureResultOfCachingAttempt()Z

    move-result v2

    if-nez v2, :cond_3

    .line 529
    :cond_1
    iget-object v2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mListeners:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    .local v0, i$:Ljava/util/Iterator;
    :goto_1
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_3

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/burstly/lib/conveniencelayer/IBurstlyListener;

    .line 530
    .local v1, listener:Lcom/burstly/lib/conveniencelayer/IBurstlyListener;
    invoke-interface {v1, p0, p1}, Lcom/burstly/lib/conveniencelayer/IBurstlyListener;->onFail(Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;Lcom/burstly/lib/conveniencelayer/events/AdFailEvent;)V

    goto :goto_1

    .line 507
    .end local v0           #i$:Ljava/util/Iterator;
    .end local v1           #listener:Lcom/burstly/lib/conveniencelayer/IBurstlyListener;
    :cond_2
    const/4 v2, 0x0

    iput v2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mThrottleTime:I

    goto :goto_0

    .line 533
    :cond_3
    return-void
.end method

.method protected onHide(Lcom/burstly/lib/conveniencelayer/events/AdHideEvent;)V
    .locals 1
    .parameter "event"

    .prologue
    .line 486
    invoke-super {p0, p1}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->onHide(Lcom/burstly/lib/conveniencelayer/events/AdHideEvent;)V

    .line 488
    iget-boolean v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mAutoCached:Z

    if-eqz v0, :cond_0

    .line 489
    invoke-virtual {p1}, Lcom/burstly/lib/conveniencelayer/events/AdHideEvent;->isARefresh()Z

    move-result v0

    if-nez v0, :cond_0

    invoke-virtual {p1}, Lcom/burstly/lib/conveniencelayer/events/AdHideEvent;->getMatchingShowEvent()Lcom/burstly/lib/conveniencelayer/events/AdShowEvent;

    move-result-object v0

    invoke-virtual {v0}, Lcom/burstly/lib/conveniencelayer/events/AdShowEvent;->isActivityInterstitial()Z

    move-result v0

    if-nez v0, :cond_0

    .line 490
    invoke-super {p0}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->baseCacheAd()V

    .line 493
    :cond_0
    return-void
.end method

.method protected onShow(Lcom/burstly/lib/conveniencelayer/events/AdShowEvent;)V
    .locals 6
    .parameter "event"

    .prologue
    const/4 v5, 0x0

    .line 462
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mState:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    sget-object v1, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;->ShowTriggered:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    if-ne v0, v1, :cond_2

    .line 463
    invoke-super {p0, p1}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->onShow(Lcom/burstly/lib/conveniencelayer/events/AdShowEvent;)V

    .line 465
    invoke-virtual {p0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->getBurstlyView()Lcom/burstly/lib/ui/BurstlyView;

    move-result-object v0

    invoke-virtual {v0, v5}, Lcom/burstly/lib/ui/BurstlyView;->setVisibility(I)V

    .line 467
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mInAnim:Landroid/view/animation/Animation;

    if-eqz v0, :cond_1

    .line 468
    sget-object v0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;->IntroAnim:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    iput-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mState:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    .line 469
    invoke-virtual {p0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->getBurstlyView()Lcom/burstly/lib/ui/BurstlyView;

    move-result-object v0

    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mInAnim:Landroid/view/animation/Animation;

    invoke-virtual {v0, v1}, Lcom/burstly/lib/ui/BurstlyView;->startAnimation(Landroid/view/animation/Animation;)V

    .line 482
    :cond_0
    :goto_0
    return-void

    .line 471
    :cond_1
    sget-object v0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;->OnScreen:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    iput-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mState:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    .line 473
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mAnimationCallbacks:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$IAnimationListener;

    if-eqz v0, :cond_0

    .line 474
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mAnimationCallbacks:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$IAnimationListener;

    invoke-interface {v0, p0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$IAnimationListener;->onIntroAnimEnd(Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;)V

    goto :goto_0

    .line 477
    :cond_2
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mState:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    sget-object v1, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;->OnScreen:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    if-ne v0, v1, :cond_3

    .line 478
    invoke-super {p0, p1}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->onShow(Lcom/burstly/lib/conveniencelayer/events/AdShowEvent;)V

    goto :goto_0

    .line 480
    :cond_3
    sget-object v0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->sLog:Lcom/burstly/lib/util/LoggerExt;

    const-string v1, "Burstly Convenience Layer"

    const-string v2, "Received onLoad callback when banner was in state {0}"

    const/4 v3, 0x1

    new-array v3, v3, [Ljava/lang/Object;

    iget-object v4, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mState:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    invoke-virtual {v4}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;->toString()Ljava/lang/String;

    move-result-object v4

    aput-object v4, v3, v5

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logWarning(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_0
.end method

.method protected resumed()V
    .locals 1

    .prologue
    .line 556
    invoke-super {p0}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->resumed()V

    .line 558
    iget-boolean v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mAutoCached:Z

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->hasCachedAd()Z

    move-result v0

    if-nez v0, :cond_0

    .line 559
    invoke-super {p0}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->baseCacheAd()V

    .line 561
    :cond_0
    return-void
.end method

.method public setAnimatedBannerListener(Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$IAnimationListener;)V
    .locals 0
    .parameter "listener"

    .prologue
    .line 541
    iput-object p1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mAnimationCallbacks:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$IAnimationListener;

    .line 542
    return-void
.end method

.method public setAnims(Landroid/view/animation/Animation;Landroid/view/animation/Animation;)V
    .locals 3
    .parameter "inAnim"
    .parameter "outAnim"

    .prologue
    const/4 v2, 0x0

    .line 589
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mState:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    sget-object v1, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;->IntroAnim:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    if-eq v0, v1, :cond_0

    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mState:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    sget-object v1, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;->OutroAnim:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    if-ne v0, v1, :cond_1

    .line 590
    :cond_0
    new-instance v0, Ljava/lang/RuntimeException;

    const-string v1, "Attempting to change anims while currently animating"

    invoke-direct {v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 593
    :cond_1
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mInAnim:Landroid/view/animation/Animation;

    if-eqz v0, :cond_2

    .line 594
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mInAnim:Landroid/view/animation/Animation;

    invoke-virtual {v0, v2}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    .line 597
    :cond_2
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mOutAnim:Landroid/view/animation/Animation;

    if-eqz v0, :cond_3

    .line 598
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mOutAnim:Landroid/view/animation/Animation;

    invoke-virtual {v0, v2}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    .line 601
    :cond_3
    iput-object p1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mInAnim:Landroid/view/animation/Animation;

    .line 602
    iput-object p2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mOutAnim:Landroid/view/animation/Animation;

    .line 604
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mInAnim:Landroid/view/animation/Animation;

    if-eqz v0, :cond_4

    .line 605
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mInAnim:Landroid/view/animation/Animation;

    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mAnimationListener:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$BannerAnimationListener;

    invoke-virtual {v0, v1}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    .line 608
    :cond_4
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mOutAnim:Landroid/view/animation/Animation;

    if-eqz v0, :cond_5

    .line 609
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mOutAnim:Landroid/view/animation/Animation;

    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mAnimationListener:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$BannerAnimationListener;

    invoke-virtual {v0, v1}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    .line 611
    :cond_5
    return-void
.end method

.method public setRefreshRate(I)V
    .locals 5
    .parameter "refreshRate"

    .prologue
    .line 411
    invoke-virtual {p0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->getBurstlyView()Lcom/burstly/lib/ui/BurstlyView;

    move-result-object v0

    .line 412
    .local v0, burstlyView:Lcom/burstly/lib/ui/BurstlyView;
    if-eqz v0, :cond_0

    .line 413
    invoke-virtual {v0, p1}, Lcom/burstly/lib/ui/BurstlyView;->setDefaultSessionLife(I)V

    .line 417
    :goto_0
    return-void

    .line 415
    :cond_0
    sget-object v1, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->sLog:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "Burstly Convenience Layer"

    const-string v3, "Should create a BurstlyAnimatedBanner before calling this method."

    const/4 v4, 0x0

    new-array v4, v4, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logError(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_0
.end method

.method public showAd()V
    .locals 6

    .prologue
    const/4 v5, 0x0

    .line 620
    invoke-static {}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->throwIfNotOnMainThread()V

    .line 622
    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mState:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    invoke-virtual {v1}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;->ordinal()I

    move-result v1

    sget-object v2, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;->IntroAnim:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    invoke-virtual {v2}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;->ordinal()I

    move-result v2

    if-lt v1, v2, :cond_1

    .line 623
    invoke-super {p0}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->showAd()V

    .line 659
    :cond_0
    :goto_0
    return-void

    .line 624
    :cond_1
    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mState:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    sget-object v2, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;->ShowTriggered:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    if-ne v1, v2, :cond_2

    .line 625
    sget-object v1, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->sLog:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "Burstly Convenience Layer"

    const-string v3, "Trying to show an ad when show has already been called"

    new-array v4, v5, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logWarning(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_0

    .line 627
    :cond_2
    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mCachingState:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;

    sget-object v2, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;->Idle:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;

    if-eq v1, v2, :cond_6

    .line 628
    sget-object v1, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->sLog:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "Burstly Convenience Layer"

    const-string v3, "calling"

    new-array v4, v5, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logWarning(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 629
    invoke-virtual {p0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->hasCachedAd()Z

    move-result v0

    .line 630
    .local v0, cached:Z
    sget-object v1, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->sLog:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "Burstly Convenience Layer"

    const-string v3, "completed"

    new-array v4, v5, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logWarning(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 631
    if-eqz v0, :cond_4

    .line 632
    sget-object v1, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;->ShowTriggered:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    iput-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mState:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    .line 634
    iget v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mRefreshRate:I

    if-lez v1, :cond_3

    .line 635
    invoke-virtual {p0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->getBurstlyView()Lcom/burstly/lib/ui/BurstlyView;

    move-result-object v1

    iget v2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mRefreshRate:I

    invoke-virtual {v1, v2}, Lcom/burstly/lib/ui/BurstlyView;->setDefaultSessionLife(I)V

    .line 638
    :cond_3
    invoke-super {p0}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->showAd()V

    goto :goto_0

    .line 639
    :cond_4
    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mCachingState:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;

    sget-object v2, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;->Retrieving:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;

    if-ne v1, v2, :cond_5

    .line 640
    sget-object v1, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;->ShowTriggered:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    iput-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mState:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    .line 641
    sget-object v1, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->sLog:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "Burstly Convenience Layer"

    const-string v3, "Attempting to show banner before it finished precaching"

    new-array v4, v5, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logWarning(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_0

    .line 643
    :cond_5
    sget-object v1, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->sLog:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "Burstly Convenience Layer"

    const-string v3, "Attempting to show precached banner while in idle state"

    new-array v4, v5, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logError(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_0

    .line 646
    .end local v0           #cached:Z
    :cond_6
    iput v5, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mThrottleTime:I

    .line 648
    iget v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mRefreshRate:I

    if-lez v1, :cond_7

    .line 649
    invoke-virtual {p0}, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->getBurstlyView()Lcom/burstly/lib/ui/BurstlyView;

    move-result-object v1

    iget v2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mRefreshRate:I

    invoke-virtual {v1, v2}, Lcom/burstly/lib/ui/BurstlyView;->setDefaultSessionLife(I)V

    .line 652
    :cond_7
    invoke-super {p0}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->showAd()V

    .line 654
    iget v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mThrottleTime:I

    if-nez v1, :cond_0

    .line 655
    sget-object v1, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;->ShowTriggered:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    iput-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner;->mState:Lcom/burstly/lib/conveniencelayer/BurstlyAnimatedBanner$State;

    goto/16 :goto_0
.end method
